package com.spring.mvc.controller;

import static com.spring.mvc.util.UrlManager.*;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import com.spring.mvc.pojo.CallResult;
import com.spring.mvc.service.TutorialsService;

@Controller
@RequestMapping("/tutor")
public class TutorialsController {

	@Autowired
	private TutorialsService tutorialsService;
	
	@RequestMapping(URL_TUTOR_FIND_BY_ID)
	public CallResult findById(int id){
		CallResult result=tutorialsService.findById(id);
		return result;
	}
}
